const fs = require("fs")
const path = './public/appVersion.json'
const jsonFile = JSON.parse(fs.readFileSync(path, "utf8"));
console.log('jsonFile',jsonFile)
const oldVersion = jsonFile.version
const newVersion = new Date().getTime()
console.log('newVersion',newVersion)
const newJsonFile = {"version":newVersion}
try {
    fs.writeFileSync(path, JSON.stringify(newJsonFile), "utf8");
    console.log('版本号已经更新为', newVersion)
  } catch (err) {
    // 处理错误
    console.error('版本号更新失败', err);
  }
